﻿<UserControl x:Class="WPFCanvas.CustomControls.QueryNodeView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" Loaded="UserControl_Loaded">
	<UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Resources/ListBoxItemStyle.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
  
    

    <Grid x:Name="LayoutRoot">
        <Border x:Name="border" BorderThickness="1.4" CornerRadius="5">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.692,0.038" StartPoint="0.308,0.962">
                    <GradientStop Color="#FF5F14A1" Offset="0.905"/>
                    <GradientStop Color="#FFBE10E7"/>
                    <GradientStop Color="#FF611993" Offset="0.621"/>
                </LinearGradientBrush>
            </Border.Background>
            <Border BorderBrush="#66FFFFFF" BorderThickness="0.5" CornerRadius="5">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="25" />
                        <RowDefinition Height="273" />
                    </Grid.RowDefinitions>
                    <Grid Grid.Row="0">
                        <TextBlock Name="title" Text="{Binding DisplayName}"  ToolTip="{Binding DisplayName}" VerticalAlignment="Center" TextAlignment="Center" FontSize="14" FontWeight="Bold" Foreground="White" />
                    </Grid>
                    <Grid Grid.Row="1">
                        <ListBox ItemsSource="{Binding Propertys}"  BorderThickness="0.1"  Background="Transparent">
                            <ListBox.ItemTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding DisplayName}">
                                        <TextBlock.ToolTip>
                                            <StackPanel Orientation="Horizontal">
                                                <TextBlock Text="{Binding Name}"/>
                                                <TextBlock Text="{Binding DataType}" Margin="5,0,0,0"/>
                                            </StackPanel>
                                        </TextBlock.ToolTip>
                                    </TextBlock>

                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>
                    </Grid>
                </Grid>
            </Border>
            <Border.BorderBrush>
                <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                    <GradientStop Color="#FFC920FC" Offset="0.151" />
                    <GradientStop Color="#FFEAB4FF" Offset="1" />
                </LinearGradientBrush>
            </Border.BorderBrush>
        </Border>

        
    </Grid>
</UserControl>
